export function generateSelectByMap (kv) {
  const result = []
  for (const [key, value] of kv) {
    result.push({
      label: key,
      value: value
    })
  }
  return result
}

export function getFileName (path) {
  const pathSplit = path.split('\\')
  return pathSplit[pathSplit.length - 1]
}

export function isNotEmpty (str) {
  return str !== null && str !== '' && str !== 'null' && str !== undefined
}
export function isEmpty (str) {
  return str === null || str === '' || str === undefined
}
